<?php
class Config
{
    protected static $_configs = array();

    public static function set($key, $value)
    {
        self::$_configs[$key] = $value;
    }

    public static function get($key)
    {
        if (isset(self::$_configs[$key]))
        {
            return self::$_configs[$key];
        }
        else
        {
            return null;
        }
    }

    public static function load($configPath)
    {
        require_once($configPath);

        if (isset($config) && is_array($config))
        {
            self::$_configs = $config;
        }
        else
        {
            exit('Config is not valid');
        }
    }
}